package cn.highset.modules.base.dao.mapper;

import cn.highset.modules.base.entity.ProductType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Victor
 */
public interface ProductTypeMapper extends BaseMapper<ProductType> {


    /**
     * 根据展商id获取数据
     *
     * @param exhibitorId
     */
    List<ProductType> findByExhibitorId(@Param("exhibitorId") String exhibitorId,@Param("levels") Integer levels);

    /**
     * 根据产品类别名称 获取id
     *
     * @param name
     * @return
     */
    List<ProductType> findByName(@Param("name") String name);
}
